﻿using System.ComponentModel.DataAnnotations;

namespace BookInfoManager.Domain.Entity.Base
{
    /// <summary>
    /// 实体基类
    /// </summary>
    public class BaseEntity
    {
        /// <summary>
        /// 记录Id
        /// </summary>
        [Required]
        public long Id { get; set; }
        /// <summary>
        /// 是否有效
        /// </summary>
        [Required]
        public bool Active { get; set; } = true;
        /// <summary>
        /// 创建日期
        /// </summary>
        [Required]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新日期
        /// </summary>
        [Required]
        public DateTime UpdateTime { get; set; }
    }
}
